package com.jarvis.dubbo.spi;


import org.apache.dubbo.common.extension.ExtensionLoader;
import org.apache.dubbo.rpc.cluster.LoadBalance;

/**
 * 示例
 *
 * @author jarvis create by 2020/9/16
 */
public class SimpleSpi {
    public static void main(String[] args) {
        ExtensionLoader<LoadBalance> loadBalanceExtensionLoader = ExtensionLoader.getExtensionLoader(LoadBalance.class);
        System.out.println(loadBalanceExtensionLoader.getExtension("random"));
        System.out.println(loadBalanceExtensionLoader.getLoadedExtensions());
    }
}
